#pragma once
#include "SFC_Label.h"
#include "SFC_Button.h"
#include "SFC_Container.h"
/** \brief Window control
 */

class SFC_Window : public SFC_Object
{
private:
	bool Runable = true;
public:
	std::thread wthread;
	BlockingQueue<SFC_Event> MsgQueue;
	SFC_String Title;
	SFC_Container Container;
	SFC_Int TitleBarHgt = 20;
	SFC_Label TitleBar;
	SFC_Button CloseButton;

	SFC_Window();
	~SFC_Window();
	void Show();
	bool Close();
	void LoadRes() override;
	void Paint() override;
	void EventRouter(SFC_Event &Event) override;
	void StartListen();
};